<?php

namespace app\common\model\keyword;

use app\common\model\BaseModel;

/**
 * 关键词模型
 */
class Keyword extends BaseModel
{
    protected $name = 'keyword';
    protected $pk = 'id';

    /**
     * 获取列表
     */
    public function getList()
    {
        return $this->order(['sort' => 'asc'])->select();
    }

    /**
     * 详情
     */
    public static function detail($id)
    {
        return (new static())->find($id);
    }

}